package com.longcheer.weibo.vo;

import java.io.Serializable;
import java.util.Date;

import org.json.JSONObject;

public abstract class Message implements Serializable {
    private static final long serialVersionUID = 8845090013167904767L;
    
    private String jsonString;

    public Message(JSONObject json) {
        jsonString = json.toString();
    }
    
    public String toJSONString() {
        return jsonString;
    }
    
    abstract public MessageType getType();
    
    abstract public long getId();
    
    abstract public Date getCreatedAt();
}
